package com.xj.game;

import java.util.Scanner;

public class Customer {
    public String name;
    public int score;
    public int caiquan;
    Scanner sc = new Scanner(System.in);

    public void showFirst() {
        do {
            System.out.println("请出拳：1：剪刀；2：石头、3：布");
            caiquan = sc.nextInt();
            switch (caiquan) {
                case 1:
                    System.out.println("你出拳：剪刀");
                    break;
                case 2:
                    System.out.println("你出拳：石头");
                    break;
                case 3:
                    System.out.println("你出拳：布");
                    break;
                default:
                    System.out.println("你出错了");
            }
        } while (caiquan < 0 || caiquan > 3);
    }
}
